package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baoyouqun.domain.Enum.SearchTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "user_search_record", autoResultMap = true)
public class UserSearchRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID（可采用雪花算法生成）")
    private String id;

    @ApiModelProperty(value = "用户ID（关联用户表）")
    private String userId;

    @ApiModelProperty(value = "搜索关键词")
    private String searchKeyword;

    @ApiModelProperty(value = "搜索类型")
    private SearchTypeEnum searchType;

    @ApiModelProperty(value = "搜索类型")
    private String type;

    @ApiModelProperty(value = "记录创建时间")
    private LocalDateTime createTime;
}